package com.zhangxu.microservice.system.web.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 分配角色资源权限请求
 */
@Data
@Schema(description = "分配角色资源权限请求")
public class AssignRoleResourceReq {

    /**
     * 角色ID
     */
    @Schema(description = "角色ID", example = "1")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    /**
     * 资源编码列表
     */
    @Schema(description = "资源编码列表", example = "[\"USER_MANAGE\", \"ROLE_MANAGE\"]")
    @NotEmpty(message = "资源编码列表不能为空")
    private List<String> resourceCodes;
}